package org.jspresso.framework.application.frontend.action.entity;

import java.util.Map;

import org.jspresso.framework.action.IActionHandler;
import org.jspresso.framework.application.frontend.action.CloseDialogAction;
import org.jspresso.model.EntityDescriptor;

public class OkChooseEntityAction<E,F,G> extends CloseDialogAction<E,F,G> {
	@Override
	public boolean execute(IActionHandler actionHandler, Map<String, Object> context) {
		setActionParameter(((EntityDescriptor)(getSelectedModel(new int[]{0}, context))).getDescriptor(), context);
		return super.execute(actionHandler, context);
	}
}
